package com.filter;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

/**
 * @author wzm
 * @create 2023-07-14 10:51
 * project_name:javaweb2306
 * file:FilterB
 */
//@WebFilter("/*")
public class FilterB implements Filter {
    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("B过滤器前操作");
        filterChain.doFilter(servletRequest,servletResponse);
        System.out.println("B过滤器后操作");
    }
}
